<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>【标准运维 APP 提醒】请确认您正在运行的周期任务状态</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <style type="text/css">
        * {
            padding: 0;
            margin: 0;
            font-family: 'Microsoft YaHei';
            font-size: 13px;
        }

        body {
            background: #fff;
            color: #63656e;
        }

        img {
            outline: none;
            border: none;
            text-decoration: none;
        }

        a {
            border: none;
            text-decoration: none !important;
            color: blue;
        }

        a:hover {
            color: blue;
            text-decoration: none !important;
        }

        .table {
            border-collapse: collapse;
            border-spacing: 0px;
            table-layout: auto;
        }

        .data-table {
            border-left: none !important;
            border-right: none !important;
        }

        .data-table thead tr th {
            padding: 13px;
            border-bottom: 1px solid #eee;
            color: #000;
            font-weight: normal;
            background: #f5f6fa;
            text-align: left;
        }

        .data-table tbody tr td {
            padding: 13px;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
            color: #555;
            max-width: 180px;
            word-wrap: break-word;
            word-break: break-all;
        }

        .blank {
            height: 25px;
            font-style: normal;
            font-variant: normal;
            font-size: 12px;
            line-height: 22px;
            font-weight: normal;
            padding: 0px;
            margin: 0px;
            border: 0px;
        }

        .content {
            width: 1000px;
            margin: 0 auto;
            background: #f0f1f5;
        }

        .header {
            width: 100%;
            height: 150px;
            background: linear-gradient(180deg,#2e3959, #5b6b92);
        }

        .header .header-info {
            position: relative;
            top: 30px;
            left: 32px;
            line-height: 32px;
        }

        .user-info {
            font-size: 14px;
        }

        .user-info p {
            line-height: 24px;
        }

        .header .header-info .logo {
            width: 32px;
            vertical-align: top;
        }

        .header .header-info .text {
            position: relative;
            left: 5px;
            font-size: 22px;
            color: #fff;
        }

        .table-item-lable {
            display: block;
            margin-top: 15px;
            font-size: 14px;
            font-family: MicrosoftYaHei, MicrosoftYaHei-Bold;
            font-weight: 700;
            text-align: left;
            color: #63656e;
            line-height: 20px;
        }
        
        .table-item-lable span {
            display: inline-block;
            position: relative;
            top: 2px;
            width: 4px;
            height: 16px;
            background: #699df4;
            border-radius: 1px;
        }

        .current-content {
            display: flex;
            justify-content: space-between;
        }

        .current-info {
            position: relative;
            top: 30px;
            text-align: left;
            color: #c4c6cc; 
        }

        .current-date {
            position: relative;
            top: 30px;
            text-align: right;
            color: #c4c6cc;
        }

        .renewal-action-flex{
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            top: 75px;
        }

        .renewal-action {
            margin-right: 40px;
            width: 144px;
            height: 32px;
            line-height: 32px;
            background: #3a84ff;
            border-radius: 16px;
            color: #fff;
            text-align: center;
            cursor: pointer;
        }

        .renewal-action a {
            border: none;
            text-decoration: none !important;
            color: #fff;
        }
    </style>
</head>

<body>
    <div class="content">
        <div class="header">
            <div class="header-info">
                <img src="" alt="" class="logo">
                <span class="text">标准运维</span>
            </div>
        </div>
        <table
            border="0"
            cellpadding="0"
            cellspacing="0"
            width="928"
            style="background:#fff;
                border-collapse: collapse;
                border-spacing: 0px;
                table-layout: auto;
                border-radius: 2px;
                box-shadow: 0px 2px 10px 2px rgba(151, 155, 165, 0.3);
                margin: 0 auto;
                position: relative;
                top: -55px;">
            <tr>
                <td style="font-family: '微软雅黑', Arial, '宋体'; padding: 32px;">
                    <div>你好，<span style="color: #ff9c01;"> {{ notifier }}</span>：</div>
                    <div>
                        检测到您以下周期任务超过
                        <span style="color: #ff9c01;">{{ period_task_times }}</span>
                        个月 未操作，请核实是否仍在使用。
                        </br>
                        如不再使用，请暂停或删除任务，以免造成资源浪费。
                    </div>
                    {% for project_name, task_project in task_projects.items %}
                        <label class="table-item-lable" style="margin-top: 50px;">
                            <span></span>
                            {{ project_name }}({{ task_project|length }})
                        </label>
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="864" style="background:#fff;">
                            <tr class="blank">
                                <td height="20">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table data-table" style="width:100%;">
                                        <thead>
                                            <tr>
                                                <th style="padding:15px 15px 15px 30px; color: #000; font-weight: normal; background: #f5f6fa; text-align: left; width: 250px;">
                                                    任务名称
                                                </th>
                                                <th style="padding:13px; color: #000; font-weight: normal; background: #f5f6fa; text-align: left; width: 360px;">
                                                    更新时间
                                                </th>
                                                <th style="padding:13px; color: #000; font-weight: normal; background: #f5f6fa; text-align: left; width: 360px;">
                                                    上次运行时间
                                                </th>
                                                <th style="padding:13px; color: #000; font-weight: normal; background: #f5f6fa; text-align: left; width: 360px;">
                                                    检测周期运行次数
                                                </th>
                                                <th style="padding:13px; color: #000; font-weight: normal; background: #f5f6fa; text-align: left; width: 360px;">
                                                    任务查看链接
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            {% for task in task_project %}
                                            <tr>
                                                <td style="padding:15px 15px 15px 30px;color: #555; max-width: 180px; word-wrap:break-word; word-break:break-all;">
                                                    {{ task.name }}
                                                </td>
                                                <td style="padding:13px;color: #555; max-width: 180px; word-wrap:break-word; word-break:break-all;">
                                                    {{ task.edit_time }}
                                                </td>
                                                <td style="padding:13px;color: #555; max-width: 180px; word-wrap:break-word; word-break:break-all;">
                                                    {{ task.last_run_at }}
                                                </td>
                                                <td style="padding:13px;color: #555; max-width: 180px; word-wrap:break-word; word-break:break-all;">
                                                    {{ task.total_run_count }}
                                                </td>
                                                <td style="padding:13px;color: #555; max-width: 180px; word-wrap:break-word; word-break:break-all;">
                                                    <a href={{ task.task_link }}>任务链接</a>
                                                </td>
                                            </tr>
                                            {% endfor %}
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    {% endfor %}
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
